package org.dromara.common.core.enums;

public enum TabTypeMinYiEnum {
   GAOPIN(1, "SerQtypeName2"),
   SUQIU(2, "SerTypeName"),
   WENTIONE(3, "SerQtypeName1"),
   WENTITWO(4, "SerQtypeName2"),
   QUDAO(5, "SerChannelName"),
   WENTITHREE(6, "SerQtypeName3");

   private Integer code;
   private String type;

   private TabTypeMinYiEnum(Integer code, String type) {
      this.code = code;
      this.type = type;
   }

   public Integer getCode() {
      return this.code;
   }

   public String getType() {
      return this.type;
   }

   public static String getTypeByCode(Integer code) {
      TabTypeMinYiEnum[] var1 = values();
      int var2 = var1.length;

      for(int var3 = 0; var3 < var2; ++var3) {
         TabTypeMinYiEnum conditionType = var1[var3];
         if (code.equals(conditionType.getCode())) {
            return conditionType.getType();
         }
      }

      return null;
   }
}
